package com.atkinsglobal.basic;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("project1")
public class Project {

	@Autowired
	@PhaseQualifier("design")
	private ProjectBlock designPhase;
	
	@Autowired
	@PhaseQualifier("implementation")
	private ProjectBlock implementationPhase;
	
	//@Value("Annotated project") // same as including <property name="name" value="First project"></property>
	@Value("${project.name}") // Gets project name from properties file referenced in xml
	private String name;

	public ProjectBlock getDesignPhase() {
		return designPhase;
	}

	public void setDesignPhase(ProjectBlock designPhase) {
		this.designPhase = designPhase;
	}

	public ProjectBlock getImplementationPhase() {
		return implementationPhase;
	}

	public void setImplementationPhase(ProjectBlock implementationPhase) {
		this.implementationPhase = implementationPhase;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
	
}
